package demo3;

public class Animal {
    public int age;
    public String name;

    public void eat(){
        System.out.println(this.name + "在吃饭");
    }
    public void sleep(){
        System.out.println(this.name + "在睡觉");
    }
}
